-
Notifications
You must be signed in to change notification settings - Fork 3
Improve metadata error message to identify the error #424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@juankx-bodo You need to run CI |
bf81cfe
to
b127491
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks Juan
Extend with new PyDough reserved words if required. | ||
""" | ||
PYDOUGH_RESERVED: set[str] = { | ||
"CALCULATE", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other thing we should probably ban is any of the function names (see the builtin_registered_operators
function for how to obtain these names).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! I didn't know about builtin_registered_operators
9565709
to
e52c486
Compare
Improve metadata error messages Improve metadata validations Check for reserved python keywords on metadata names Fix metadata for broker Check for Pydough and SQL reserved words Add validation for SQL names in TablePath & ColumnName Apply code review observations
cea91f0
to
d96e49f
Compare
Improve the error msg
name must be a string that is a Python identifier
to:name: [no!Valid'Identifier\Name] must be a string that is a valid Python identifier
Add additional validation to names used in Pydough to prevent them from being Pydough or Python reserved words. Also, add validation for
table path
andcolumn name
to ensure they are valid SQL identifier names and not SQL reserved words.